package com.origin.app.business.immersive

import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import com.origin.app.R
import com.origin.app.databinding.ItemTeBinding
import com.origin.app.databinding.ItemTeBindingImpl
import com.origin.uilibrary.xrecycleview.adapter.BaseRecycleAdapter
import com.origin.uilibrary.xrecycleview.viewholder.BaseViewHolder

class TeAdapter(list: MutableList<String>, context: Context) :
    BaseRecycleAdapter<String>(list, context) {
    override fun setItemData(holder: BaseViewHolder, item: String, position: Int) {
        (holder.binding as ItemTeBinding).tv.text = item
    }

    override fun getViewResource(
        inflater: LayoutInflater,
        viewType: Int,
        parent: ViewGroup
    ): BaseViewHolder {
        return loadDataBindingBaseViewHolder<ItemTeBinding>(inflater, parent, R.layout.item_te)
    }
}